// 泛型
function myFn<T>(a: T, b: T): T[] {
    return [a, b]
}

console.log(myFn<number>(1, 2));
console.log(myFn<string>('a', 'b'));
console.log(myFn(1, 2));
